package JAVACORE_TRAINING.OOPS_CONCEPTS.OOP_EXCERCISES.LEVER02.EX01;

public class Controllers {
	
	public double ExecOfArea(TringleObject objTringle){
		return new Models().Area(objTringle);
	}
	
	public double ExecOfPerrimetter(TringleObject objTringle){
		return new Models().Perrimetter(objTringle);
	}
	
	public boolean IsTringle(TringleObject objTringle){
		return ((objTringle.getdSide01() 
							+ objTringle.getdSide02() > 
								objTringle.getdSide03()) &&
						(objTringle.getdSide02() 
								+ objTringle.getdSide03() > 
									objTringle.getdSide01()) && 
						(objTringle.getdSide01() 
								+ objTringle.getdSide03() > 
									objTringle.getdSide02())) ? true : false; 
	}
	
}
